<div class="w">
    <ul class="tab">
    <?php if($caseType == 0): ?>
        <li><?php echo $this->Html->link('最新案例', '/case/index', array('class' => 'on', 'title'=>'最新案例'));?></li>
    <?php else:?>
        <li><?php echo $this->Html->link('最新案例', '/case/index', array('title'=>'最新案例'));?></li>
    <?php endif;?>
    <?php
    foreach ($services as $key => $service) {
        $class = '';
        if ($key == $caseType) {
            $class = 'on';
        }
        echo "<li>" . $this->Html->link($service, "/case/index/type:$key", array('class'=>$class,'title'=>$service)) . "</li>";
    }
    ?>
    </ul>
    <div class="cont block">
        <?php //echo $this->element('contentlist');?>
        <?php echo $this->element('contentlist3c');?>
        <div class="clr"></div>
        <!-- start pageBar -->
        <div class="pageBar">
            <?php 
            if ($this->Paginator->hasPrev()) {
                $prevPageUrl = array(
                    'page' => $this->Paginator->current()-1
                ); 
                echo $this->Paginator->link('', $prevPageUrl, array('class'=>'prev-page'));
            } else {
                echo '<a href="#;" class="disabled-prev-page" title="上一页"></a>';
            }

            $paging = $this->Paginator->params();
            $pageCount = $paging['pageCount'];
            foreach (range(1,$pageCount) as $page) {
                $url = array(
                    'page'=>$page
                );
                if ($this->Paginator->current()==$page) {
                    $class = 'pageOn';
                } else {
                    $class = 'page';
                }
                echo $this->Paginator->link($page, $url, array('class'=>$class)); 
            }
            if ($this->Paginator->hasNext()) {
                $nextPageUrl = array(
                    'page' => $this->Paginator->current()+1
                ); 
                echo $this->Paginator->link('', $nextPageUrl, array('class'=>'next-page'));
            } else {
                echo '<a href="#;" class="disabled-next-page" title="下一页"></a>';
            }
            ?>
         </div>
        <!-- end pageBar -->
     </div>
</div>
